/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.AttributeManager;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "单号规则",TableName = "Sys_CodeRole")]
    public partial class Sys_CodeRole:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="guid")]
       [Column(TypeName="uniqueidentifier")]
       [Required(AllowEmptyStrings=false)]
       public Guid guid { get; set; }

       /// <summary>
       ///业务类型
       /// </summary>
       [Display(Name ="业务类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string TypeName { get; set; }

       /// <summary>
       ///业务编号
       /// </summary>
       [Display(Name ="业务编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string TypeCode { get; set; }

       /// <summary>
       ///创建人ID
       /// </summary>
       [Display(Name ="创建人ID")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int CreateID { get; set; }

       /// <summary>
       ///创建人姓名
       /// </summary>
       [Display(Name ="创建人姓名")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [Column(TypeName="int")]
       public int? ModifyID { get; set; }

       /// <summary>
       ///修改人姓名
       /// </summary>
       [Display(Name ="修改人姓名")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///审批人ID
       /// </summary>
       [Display(Name ="审批人ID")]
       [Column(TypeName="int")]
       public int? ApproverID { get; set; }

       /// <summary>
       ///审批人
       /// </summary>
       [Display(Name ="审批人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string Approver { get; set; }

       /// <summary>
       ///审批时间
       /// </summary>
       [Display(Name ="审批时间")]
       [Column(TypeName="datetime")]
       public DateTime? ApproverDate { get; set; }

       /// <summary>
       ///表名字
       /// </summary>
       [Display(Name ="表名字")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string TableName { get; set; }

       /// <summary>
       ///字段名字
       /// </summary>
       [Display(Name ="字段名字")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string FieldName { get; set; }

       
    }
}